#!/bin/bash

if [ $# -ne 1 ]; then
  echo "Usage: $0 <version>"
  exit 1
fi

version="$1"

sudo rm /boot/initrd.img-$version /boot/vmlinuz-$version /boot/System.map-$version /boot/config-$version

# This script takes one argument, which is the version number to be deleted (e.g., "5.8.0-55"). It then constructs the file names for the four files that need to be deleted, using the provided version number. Finally, it runs the rm command with sudo to delete these files.

# Note that this script assumes that the files to be deleted are located in the /boot directory. If they are located elsewhere, you will need to modify the file paths accordingly. Also, please use this script with caution, as deleting system files can potentially cause damage to your system.
